package cn.com.homeyoda.aimate.aihealth.ui.my.feedback;

import androidx.annotation.NonNull;
import androidx.annotation.Nullable;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;

import java.util.List;

import cn.com.homeyoda.aimate.aihealth.R;
import cn.com.homeyoda.aimate.aihealth.bean.FeedBackListBean;

public class FeedbackAdapter extends BaseQuickAdapter<FeedBackListBean.RowsBean, BaseViewHolder> {

    public FeedbackAdapter(int layoutResId) {
        super(layoutResId);
    }

    @Override
    protected void convert(@NonNull BaseViewHolder helper, FeedBackListBean.RowsBean item) {
        // TODO: 2025/4/13 接口没有返回标题
//        helper.setText(R.id.tv_title, "反馈标题" + helper.getLayoutPosition());
        helper.setText(R.id.tv_desc, item.getDescribe());
        helper.setText(R.id.tv_date, item.getAddTime());
        helper.addOnClickListener(R.id.btn_view_responses);
    }

    @Override
    public void setNewData(@Nullable List<FeedBackListBean.RowsBean> data) {
        super.setNewData(data);
    }
}
